public class catPanel extends JFrame {
Cat cat = new Cat();

public static ImagePanel catPanel;
private int hungry;
private JLabel hungryLabel;
private JTextField hungryText;
private int tidy;
private JLabel tidyLabel;
private JTextField tidyText;

public void initialize() {
this.setSize(800,600);
this.setLayout(null);
this.setDefaultCloseOperation(Cat.EXIT_ON_CLOSE);
this.setResizable(false);
this.setLocation(50,50);

int xCoordinate=0;
int yCoordinate=0;
int ylCoordinate=0;

catPanel = new ImagePanel();
catpanel.setSize(600,460);
this.add(catPanel);
xCoordinate = catPanel.getWidth();
yCoordinate = catPanel.getHeight();

this.hungry = new JLabel(hungry);
this.hungry.setLocation(xCoordinate,0);
this.hungry.setSize(200,50);
this.add(hungry);
yCoordinate=hungry.getY();

this.hungryText= new JTextField(100);
this.hungryText.setEditable(false);
this.hungryText.setLocation(xCoordinate,yCoordinate+40);
this.hungryText.setSize(200,30);
this.add(hungryText);
yCoordinate=hungryText.getY();

this.tidy = new JLabel(tidy);
this.tidy.setLocation(xCoordinate,yCoordinate+40);
this.tidy.setSize(200,50);
this.add(tidy);
yCoordinate=tidy.getY();

this.tidyText= new JTextField(100);
this.tidyText.setEditable(false);
this.tidyText.setLocation(xCoordinate,yCoordinate+40);
this.tidyText.setSize(200,30);
this.add(tidyText);
yCoordinate=tidyText.getY();

this.setVisible();
}

    public void growup() {
age+0.01=age;
1+1=a;
    if(age>=50) {
            }
    if(length<30) {
length+0.01=length;
    }
}
    public void growupTimer() {
        Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            public void run() {
                growup();
            }
        }, 0, 3000
    }
    public void becomeHungry() {
hungry+10=hungry;
    if(hungry<=50) {
        imgs.add("img/hungry_cat.jpg");    }
    if(hungry==100) {
            }
}
    public void becomeHungryTimer() {
        Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            public void run() {
                becomeHungry();
            }
        }, 0, 3000
    }
public void dieNaturally() {
a+1=a;
    for (    int i=0;
;i<imgs.size();    i=i+1) {
        images.remove("");    }
    private int j=0;
    public void setj(int input) {
        this.j=input;
    }
    public int getj() {
        return this.j;
    }
    if(j<10) {
        private int mm=0;
        public void setmm(int input) {
            this.mm=input;
        }
        public int getmm() {
            return this.mm;
        }
        private int jj=0;
        public void setjj(int input) {
            this.jj=input;
        }
        public int getjj() {
            return this.jj;
        }
    }
else {
        private int nn=9;
        public void setnn(int input) {
            this.nn=input;
        }
        public int getnn() {
            return this.nn;
        }
    }
    images.add("img/img_dead");}
    public void becomeSick() {
health-1=health;
    if(tidy<=50) {
        imgs.add("img/sick_dog.jpg");    }
}
    public void becomeSickTimer() {
        Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            public void run() {
                becomeSick();
            }
        }, 0, 3000
    }
    public void becomeBoring() {
happy-1=happy;
    if(tidy<=50) {
        imgs.add("img/boring_dog.jpg");    }
}
    public void becomeBoringTimer() {
        Timer timer = new Timer();
        timer.schedule(new TimerTask() {
            public void run() {
                becomeBoring();
            }
        }, 0, 3000
    }
}
